package com.example.springmvcproject.Vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserSelectiveVo {
    private Long startTime;
    private Long endTime;
    @Pattern(regexp = "userId|userName",message = "非法传参")
    private String searchType;
    @Size(min = 0,max = 30,message = "搜索内容需要在30个字符内")
    private String searchText;

    private Integer pageIndex=0;
    private Integer pageSize=10;
}
